package com.bfly.mall.order.event;

import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationEvent;

import java.util.Date;

/**
 * 订单发货事件
 *
 * @author 长沙商脉科技有限公司
 * @date 2020/12/14 21:42
 */
public class OrderShipEvent extends ApplicationEvent {
    private final ApplicationContext context;
    private final String orderNo;
    private final Date time;
    private final String expressName;
    private final String expressNo;

    public OrderShipEvent(ApplicationContext ctx, String orderNo, Date time, String expressName, String expressNo) {
        super(ctx);
        this.orderNo = orderNo;
        this.time = time;
        this.expressName = expressName;
        this.expressNo = expressNo;
        this.context = ctx;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public Date getTime() {
        return time;
    }

    public String getExpressName() {
        return expressName;
    }

    public String getExpressNo() {
        return expressNo;
    }

    public ApplicationContext getApplicationContext() {
        return this.context;
    }
}
